import request from '../utils/request'

// 获取用户数据
export const getUserInfo = () => {
  return request.get('http://smart-shop.itheima.net/index.php?s=/api/user/info')
}

// 获取用户，余额、积分、优惠券信息
export const getUserDetail = () => {
  return request.get('https://smart-shop.itheima.net/index.php?s=/api/user/assets')
}

// 获取商品状态数量(全部/待支付/待收货/待发货)
export const getOrderStatusCount = () => {
  return request.get('https://smart-shop.itheima.net/index.php?s=/api/order/todoCounts')
}
